-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
admin settings pagination #9119
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
packages/web-app-admin-settings/src/components/Groups/GroupsList.vue
Outdated
Show resolved
Hide resolved
packages/web-app-admin-settings/src/components/Groups/GroupsList.vue
Outdated
Show resolved
Hide resolved
packages/web-app-admin-settings/src/components/Groups/GroupsList.vue
Outdated
Show resolved
Hide resolved
packages/web-app-admin-settings/src/components/Spaces/SpacesList.vue
Outdated
Show resolved
Hide resolved
packages/web-app-admin-settings/src/components/Users/UsersList.vue
Outdated
Show resolved
Hide resolved
packages/web-app-admin-settings/src/components/Users/UsersList.vue
Outdated
Show resolved
Hide resolved
packages/web-app-admin-settings/src/composables/usePagination.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found 2 issues:
-
- applying a filter (search / groups / roles / etc) should reset the current page to
1
- applying a filter (search / groups / roles / etc) should reset the current page to
-
- deleting all elements of the last page should set the current page to
currentPage - 1
- deleting all elements of the last page should set the current page to
while (2) is probably not happening very often (not a blocker for this PR) I think that (1) is worth fixing before merge.
Results for e2e-tests oCIS https://drone.owncloud.com/owncloud/web/36162/12/1 💥 To see the trace, please open the link in the console ...
npx playwright show-trace https://cache.owncloud.com/public/owncloud/web/36162/tracing/user-group-assignments-can-be-handled-via-batch-actions-admin-2023-5-30-09-58-35.zip |
76b5490
to
a295063
Compare
a295063
to
a10ca34
Compare
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, works like intended 👍🏼
Related Issue
Types of changes
Follow-ups:
usePagination
composables into one and move it toweb-pkg
currentPage - 1
) when all items on the last page have been deleted